projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05d438e
)
x11: Mark unused variables as such
author
Benjamin Otte
<otte@redhat.com>
Thu, 1 Mar 2012 04:16:04 +0000
(
05:16
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 1 Mar 2012 04:32:34 +0000
(
05:32
+0100)
We cannot get rid of the variables because they are assigned in a macro
inside Xlib. And this causes a warning in the xlib from Fedora 17
onwards.
gdk/x11/gdkasync.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkasync.c
b/gdk/x11/gdkasync.c
index 04f78a95646f587a69cda7a7be594574bd33159c..328be083768cca28021c2c365eb9e89feab2cfa5 100644
(file)
--- a/
gdk/x11/gdkasync.c
+++ b/
gdk/x11/gdkasync.c
@@
-276,7
+276,7
@@
_gdk_x11_send_client_message_async (GdkDisplay *display,
* XSync (dpy, 0)
*/
{
- xReq *req;
+
G_GNUC_UNUSED
xReq *req;
GetEmptyReq(GetInputFocus, req);
state->get_input_focus_req = dpy->request;
@@
-739,7
+739,7
@@
_gdk_x11_roundtrip_async (GdkDisplay *display,
* XSync (dpy, 0)
*/
{
- xReq *req;
+
G_GNUC_UNUSED
xReq *req;
GetEmptyReq(GetInputFocus, req);
state->get_input_focus_req = dpy->request;